package com.fuxin.hanfu.mapper;

import com.fuxin.hanfu.domain.User;
import com.fuxin.hanfu.domain.UserExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);
    User findById(Integer userId);

    Integer update(User user);

    Integer delete(Integer userId);

    Integer insertUser(User user);


    User findByUsername(@Param("username") String username);
}
